// Definition of a scroll-view widget
// Copyright 2005 (C) Ralph Thomas

#ifndef MISSION_VIEW_SCROLL_H
#define MISSION_VIEW_SCROLL_H

#include <view/factory.h>

namespace view {
	//
	/// The scroll view container is a container that can host a new Eve
	/// layout inside itself, and uses scroll bars if the hosted layout
	/// is larger than the space it has available. The hosted layout is
	/// bound to the same sheet as the container.
	///
	/// \param	parameters	a dictionary of parameters for the
	///				new scroll-view widget.
	/// \param	parent		the parent of the scroll-view widget.
	/// \param	token		the factory token containing everything
	///				else for creating the widget.
	/// \param	f		the factory to use for creating child
	///				widgets of the scroll view.
	///
	/// \return	a widget_node_t containing the new scroll-view widget.
	//
	adobe::widget_node_t scroll_factory(
		const adobe::dictionary_t&	parameters,
		const adobe::widget_node_t&	parent,
		const adobe::factory_token_t&	token,
		factory*			f );
};

#endif

